﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="Tvt.aspx.cs" Inherits="Tvt" Title="Tvt List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Tvt List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="TvtDataSource"
				DataKeyNames="Id"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_Tvt.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="I1InputDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="I1 Input Date" SortExpression="I1InputDate"  />
				<asp:BoundField DataField="I7CondBhLuongNhap" HeaderText="I7 Cond Bh Luong Nhap" SortExpression="I7CondBHLuongNhap"  />
				<asp:BoundField DataField="I8CondBhTenMeNhap" HeaderText="I8 Cond Bh Ten Me Nhap" SortExpression="I8CondBHTenMeNhap"  />
				<asp:BoundField DataField="I9CondBhKhac" HeaderText="I9 Cond Bh Khac" SortExpression="I9CondBHKhac"  />
				<asp:BoundField DataField="I10CondBhd1013" HeaderText="I10 Cond Bhd1013" SortExpression="I10CondBHD1013"  />
				<asp:BoundField DataField="I11BuproFt1011Nhap" HeaderText="I11 Bupro Ft1011 Nhap" SortExpression="I11BuproFT1011Nhap"  />
				<asp:BoundField DataField="I12BuproFt1012Nhap" HeaderText="I12 Bupro Ft1012 Nhap" SortExpression="I12BuproFT1012Nhap"  />
				<asp:BoundField DataField="I13BuproXeBonNhap" HeaderText="I13 Bupro Xe Bon Nhap" SortExpression="I13BuproXeBonNhap"  />
				<asp:BoundField DataField="I14BuproKhac" HeaderText="I14 Bupro Khac" SortExpression="I14BuproKhac"  />
				<asp:BoundField DataField="I15Dlpg" HeaderText="I15 Dlpg" SortExpression="I15DLPG"  />
				<asp:BoundField DataField="I16CondNcsz7900" HeaderText="I16 Cond Ncsz7900" SortExpression="I16CondNCSZ7900"  />
				<asp:BoundField DataField="I17CondNcsKhac" HeaderText="I17 Cond Ncs Khac" SortExpression="I17CondNCSKhac"  />
				<asp:BoundField DataField="I18CondNcsBatchNo" HeaderText="I18 Cond Ncs Batch No" SortExpression="I18CondNCSBatchNO"  />
				<asp:BoundField DataField="I19d7900" HeaderText="I19d7900" SortExpression="I19D7900"  />
				<asp:BoundField DataField="I20CondBhXuatTheoMeter" HeaderText="I20 Cond Bh Xuat Theo Meter" SortExpression="I20CondBHXuatTheoMeter"  />
				<asp:BoundField DataField="I21CondBhXuatTheoTank" HeaderText="I21 Cond Bh Xuat Theo Tank" SortExpression="I21CondBHXuatTheoTank"  />
				<asp:BoundField DataField="I22CondBhXuatTheoGiamDinh" HeaderText="I22 Cond Bh Xuat Theo Giam Dinh" SortExpression="I22CondBHXuatTheoGiamDinh"  />
				<asp:BoundField DataField="I23CondBhXuatKhac" HeaderText="I23 Cond Bh Xuat Khac" SortExpression="I23CondBHXuatKhac"  />
				<asp:BoundField DataField="I24BuproTheoMeter" HeaderText="I24 Bupro Theo Meter" SortExpression="I24BuproTheoMeter"  />
				<asp:BoundField DataField="I25BuproTheoTank" HeaderText="I25 Bupro Theo Tank" SortExpression="I25BuproTheoTank"  />
				<asp:BoundField DataField="I27BuproXuatTheoGiamDinhTamTinh" HeaderText="I27 Bupro Xuat Theo Giam Dinh Tam Tinh" SortExpression="I27BuproXuatTheoGiamDinhTamTinh"  />
				<asp:BoundField DataField="I28BuproXuatKhac" HeaderText="I28 Bupro Xuat Khac" SortExpression="I28BuproXuatKhac"  />
				<asp:BoundField DataField="I29CondNcsXuatTheoMeter" HeaderText="I29 Cond Ncs Xuat Theo Meter" SortExpression="I29CondNCSXuatTheoMeter"  />
				<asp:BoundField DataField="I30CondNcsXuatTheoTank" HeaderText="I30 Cond Ncs Xuat Theo Tank" SortExpression="I30CondNCSXuatTheoTank"  />
				<asp:BoundField DataField="I31CondNcsXuatTheoGiamDinh" HeaderText="I31 Cond Ncs Xuat Theo Giam Dinh" SortExpression="I31CondNCSXuatTheoGiamDinh"  />
				<asp:BoundField DataField="I32CondNcsXuatKhac" HeaderText="I32 Cond Ncs Xuat Khac" SortExpression="I32CondNCSXuatKhac"  />
				<asp:BoundField DataField="I33CondNcsLiftNo" HeaderText="I33 Cond Ncs Lift No" SortExpression="I33CondNCSLiftNO"  />
				<asp:BoundField DataField="I34LpgXaDot" HeaderText="I34 Lpg Xa Dot" SortExpression="I34LPGXaDot"  />
				<asp:BoundField DataField="I35CondXaDot" HeaderText="I35 Cond Xa Dot" SortExpression="I35CondXaDot"  />
				<asp:BoundField DataField="I36CondBhKhoiLuongTon" HeaderText="I36 Cond Bh Khoi Luong Ton" SortExpression="I36CondBHKhoiLuongTon"  />
				<asp:BoundField DataField="I37CondBhTonMuca" HeaderText="I37 Cond Bh Ton Muca" SortExpression="I37CondBHTonMucA"  />
				<asp:BoundField DataField="I38CondBhTonMucb" HeaderText="I38 Cond Bh Ton Mucb" SortExpression="I38CondBHTonMucB"  />
				<asp:BoundField DataField="I39BuproTon" HeaderText="I39 Bupro Ton" SortExpression="I39BuproTon"  />
				<asp:BoundField DataField="I40CondNcsKhoiLuongTon" HeaderText="I40 Cond Ncs Khoi Luong Ton" SortExpression="I40CondNCSKhoiLuongTon"  />
				<asp:BoundField DataField="I41CondNcsTonMuca" HeaderText="I41 Cond Ncs Ton Muca" SortExpression="I41CondNCSTonMucA"  />
				<asp:BoundField DataField="I42CondNcsTonMucb" HeaderText="I42 Cond Ncs Ton Mucb" SortExpression="I42CondNCSTonMucB"  />
				<asp:BoundField DataField="I65GhiChuNcs" HeaderText="I65 Ghi Chu Ncs" SortExpression="I65GhiChuNCS"  />
				<asp:BoundField DataField="I66GhiChuNhap" HeaderText="I66 Ghi Chu Nhap" SortExpression="I66GhiChuNhap"  />
				<asp:BoundField DataField="I67GhiChuXuat" HeaderText="I67 Ghi Chu Xuat" SortExpression="I67GhiChuXuat"  />
				<asp:BoundField DataField="I68GhiChuTon" HeaderText="I68 Ghi Chu Ton" SortExpression="I68GhiChuTon"  />
				<asp:BoundField DataField="I69GhiChuKhac" HeaderText="I69 Ghi Chu Khac" SortExpression="I69GhiChuKhac"  />
				<data:HyperLinkField HeaderText="Status" DataNavigateUrlFormatString="StatusEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="StatusSource" DataTextField="Name" />
				<data:HyperLinkField HeaderText="Created User" DataNavigateUrlFormatString="UserEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="CreatedUserSource" DataTextField="Username" />
				<data:HyperLinkField HeaderText="Hid" DataNavigateUrlFormatString="TvtEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="HidSource" DataTextField="I1InputDate" />
				<asp:BoundField DataField="CreatedDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Created Date" SortExpression="CreatedDate"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No Tvt Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnTvt" OnClientClick="javascript:location.href='TvtEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:TvtDataSource ID="TvtDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:TvtProperty Name="Status"/> 
					<data:TvtProperty Name="User"/> 
					<data:TvtProperty Name="Tvt"/> 
					<%--<data:TvtProperty Name="TvtCollection" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:TvtDataSource>
	    		
</asp:Content>



